import request from '@/utils/request'

/**
 * 发货单详情表分页查询
 * @param {查询条件} data
 */
export function listCorecmsbilldeliveryitem(query) {
  return request({
    url: 'order/Corecmsbilldeliveryitem/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增发货单详情表
 * @param data
 */
export function addCorecmsbilldeliveryitem(data) {
  return request({
    url: 'order/Corecmsbilldeliveryitem',
    method: 'post',
    data: data,
  })
}
/**
 * 修改发货单详情表
 * @param data
 */
export function updateCorecmsbilldeliveryitem(data) {
  return request({
    url: 'order/Corecmsbilldeliveryitem',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取发货单详情表详情
 * @param {Id}
 */
export function getCorecmsbilldeliveryitem(id) {
  return request({
    url: 'order/Corecmsbilldeliveryitem/' + id,
    method: 'get'
  })
}

/**
 * 删除发货单详情表
 * @param {主键} pid
 */
export function delCorecmsbilldeliveryitem(pid) {
  return request({
    url: 'order/Corecmsbilldeliveryitem/delete/' + pid,
    method: 'POST'
  })
}
